package com.sc.design.prototype;

public class Mail implements Cloneable{
    private String receiver;
    private String subject;
    private String appe;
    private String context;
    private String tail;

    public Mail(AdvTemplate template)
    {
        this.subject = template.getAdvSubj();
        this.context = template.getAdvContext();
    }

    @Override
    public Mail clone()
    {
        Mail mail = null;
        try {
            mail  = (Mail) super.clone();

        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return mail;
    }


    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getAppe() {
        return appe;
    }

    public void setAppe(String appe) {
        this.appe = appe;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTail() {
        return tail;
    }

    public void setTail(String tail) {
        this.tail = tail;
    }
}
